home *** CD-ROM | disk | FTP | other *** search
/ PC World Plus! (NZ) 2001 October / PCW1001.iso / Games / startopiademo1.exe / missions / 01 / Copy of mish01.txt < prev    next >
Text File  |  2001-03-16  |  22KB  |  1,237 lines

  1. :autorun
  2. if
  3. then
  4.     title "lev01_title01"
  5.     disallow decks bio_deck
  6.     disallow decks mid_deck
  7.     place_room 2 13 1 1 sub_deck collector east
  8.     place_room 12 15 1 1 sub_deck collector_node north
  9.     set salt_hog_max 15
  10.     set salt_hog_every 1000000
  11.     set grey_max 10
  12.     set grey_every 1000000
  13.     set aronatimer 1000000
  14.     set sicktimer 100000
  15.     set targwait 1000000
  16.     set scriptwait 1000000
  17.     set energy 75000
  18. ;EVENTUALLY TO BE REPLACED AS DEFAULT ITEMS
  19.     discover @teevee
  20.     discover @clock
  21.     discover @lavalamp
  22.  
  23. ;    tom test for avoiding placing peeps on top of stuff
  24. ;    place_peep targ resident 10 20 0 1024 0
  25. ;    place_peep targ resident 10 20 0 1024 0
  26. ;    place_peep targ resident 10 20 0 1024 0
  27. ;    place_peep targ resident 10 20 0 1024 0
  28. ;    place_peep targ resident 10 20 0 1024 0
  29. ;    place_peep targ resident 10 20 0 1024 0
  30.  
  31.     disable
  32. end
  33.  
  34. ;Game Start-up********************************************************************
  35. ;Basic welcome text from Val
  36. :LOOP050
  37. if
  38.     turn > 100
  39. then
  40.     set speechcount 1 after say "lev01_general01"
  41.     disable
  42. end
  43.  
  44. ;Outlines basic mission objective
  45. :LOOP070
  46. if
  47.     speechcount = 1
  48. then
  49.     set speechcount 2 after say "lev01_mission01"
  50.     disable
  51. end
  52.  
  53. ;Sets task as build docking portal**********************************************
  54. ;Places suitable crates
  55. :LOOP090
  56. if
  57.     Speechcount = 2
  58. then
  59.     set speechcount 3 after say "lev01_task01"
  60.     disable
  61. end    
  62.  
  63. :loop091
  64. if
  65.     speechcount = 3
  66. then
  67.     cam_pos 90 60 190 1536 256
  68.     sayx 01 "lev01_objective01"
  69.     placeportable scutter_crate 12 18 sub_deck 1000 1
  70.     placeportable scutter_crate 13 19 sub_deck 800 1
  71.     placeportable hard_plan_crate 12 19 sub_deck 600 port
  72.     disable
  73. end
  74.  
  75. :loop091x
  76. if
  77.     port_count > 0
  78. then
  79.     unsayx 01
  80.     disable
  81. end
  82.  
  83. ;Build berth with 5 pods with provided crate*************************************
  84. :LOOP100
  85. if
  86.     speechcount = 3
  87.     port_count = 1
  88. then
  89.     set speechcount 4 after say "lev01_task02"
  90.     disable
  91. end
  92.  
  93. :loop101
  94. if
  95.     speechcount = 4
  96. then
  97.     placeportable hard_plan_crate 12 18 sub_deck 724 berth
  98.     sayx 02 "lev01_objective02"
  99.     disable
  100. end    
  101.  
  102. :loop101x
  103. if
  104.     berth_count > 0
  105.     bunk_count > 4
  106. then
  107.     unsayx 02
  108.     disable
  109. end
  110.  
  111. ;Build a lavotron with provided crate*********************************************
  112. :LOOP103
  113. if
  114.     speechcount = 4
  115.     bunk_count > 4
  116.     berth_count > 0
  117. then
  118.     set speechcount 5 after say "lev01_task03"
  119.     disable
  120. end
  121.  
  122. :loop104
  123. if
  124.     speechcount = 5
  125. then
  126.     set salt_hog_every 10
  127.     placeportable hard_plan_crate 12 18 sub_deck 624 lavotron
  128.     sayx 03 "lev01_objective03"
  129.     disable
  130. end
  131.  
  132. :loop104x
  133. if
  134.     lavotron_count > 0
  135. then
  136.     unsayx 03
  137.     disable
  138. end
  139.  
  140. ;Build Dine-O-mat with provided crate********************************************* 
  141. :LOOP110
  142. if
  143.     speechcount = 5
  144.     lavotron_count > 0
  145. then
  146.     set speechcount 6 after say "lev01_task04"
  147.     disable
  148. end
  149.  
  150. :LOOP111
  151. if
  152.     speechcount = 6
  153. then
  154.     placeportable hard_plan_crate 12 18 sub_deck 524 vendor
  155.     sayx 04 "lev01_objective04"
  156.     disable
  157. end
  158.  
  159. :loop111x
  160. if
  161.     vendor_count > 0
  162. then
  163.     unsayx 04
  164.     disable
  165. end
  166.  
  167. ;Build charger with provided crate********************************************
  168. :LOOP120
  169. if
  170.     speechcount = 6
  171.     vendor_count > 0
  172. then
  173.     set speechcount 7 after say "lev01_task05"
  174.     disable
  175. end
  176.  
  177. :LOOP121
  178. if
  179.     speechcount = 7
  180. then
  181.     placeportable hard_plan_crate 12 18 sub_deck 424 charger
  182.     sayx 05 "lev01_objective05"
  183.     disable
  184. end
  185.  
  186. :loop121x
  187. if
  188.     charger_count > 0
  189. then
  190.     unsayx 05
  191.     disable
  192. end
  193.  
  194. ;Wait until at least 10 salthogs are on board***********************************
  195. :LOOP140
  196. if
  197.     speechcount = 7
  198.     charger_count > 0
  199.     salt_hog_count < 10
  200. then
  201.     set speechcount 9 after say "lev01_task06"
  202.     sayx 06 "lev01_objective06"
  203.     disable
  204. end
  205.  
  206. :loop140x
  207. if
  208.     salt_hog_count > 9
  209. then
  210.     unsayx 06
  211.     disable
  212. end
  213.  
  214. :Loop141
  215. if
  216.     speechcount = 7
  217.     salt_hog_count > 9
  218.     charger_count > 0
  219. then
  220.     set speechcount 9
  221.     disable
  222. end
  223.  
  224. ;Check that port has been opened and remind player otherwise***********************
  225. :loop150
  226. if
  227.     charger_count = 1
  228.     salt_hog_count < 1
  229. then
  230.     say "lev01_reminder01"
  231.     disable
  232. end
  233.  
  234. ;Congratulates player on getting this far****************************************
  235. :LOOP160
  236. if
  237.     speechcount = 9
  238.     collector_count = 1
  239.     port_count = 1
  240.     bunk_count > 4
  241.     vendor_count > 0
  242.     lavotron_count > 0
  243.     scutter_count > 0
  244.     charger_count > 0
  245.     salt_hog_count > 8
  246. then
  247.     set speechcount 11 after say "lev01_general02"
  248.     set salt_hog_max 30
  249.     disable
  250. end
  251.  
  252. ;Makes second segment available and tells player to occupy it**********************
  253. :LOOP162
  254. if
  255.     speechcount = 11
  256. then
  257.     set speechcount 12 after say "lev01_task07"
  258.     disable
  259. end
  260.  
  261. :loop163
  262. if
  263.     speechcount = 12
  264. then
  265.     cam_pos 90 60 160 1536 056
  266.     unlock 1
  267.     sayx 07 "lev01_objective07"
  268.     disable
  269. end
  270.  
  271. :loop163x
  272. if
  273.     array ownsubdeck 1 = 1
  274. then
  275.     unsayx 07
  276.     disable
  277. end
  278.     
  279. ;Build a recycler with provided crate*********************************************** 
  280. :loop165
  281. if
  282.     speechcount = 12
  283.     array ownsubdeck 1 = 1
  284. then
  285.     placeportable junk 17 1 sub_deck 1024
  286.     placeportable junk 18 15 sub_deck 924
  287.     placeportable junk 19 14 sub_deck 824
  288.     placeportable junk 20 19 sub_deck 724
  289.     placeportable junk 21 9 sub_deck 624
  290.     placeportable junk 22 11 sub_deck 524
  291.     placeportable junk 23 12 sub_deck 424
  292.     placeportable junk 24 18 sub_deck 324
  293.     placeportable junk 25 15 sub_deck 224
  294.     placeportable junk 26 5 sub_deck 124
  295.     placeportable junk 27 14 sub_deck 24
  296.     placeportable junk 28 15 sub_deck 1024
  297.     placeportable junk 29 26 sub_deck 924
  298.     placeportable junk 30 14 sub_deck 824
  299.     placeportable litter 17 27 sub_deck 724
  300.     placeportable litter 18 15 sub_deck 624
  301.     placeportable litter 19 6 sub_deck 524
  302.     placeportable litter 20 16 sub_deck 424
  303.     placeportable litter 21 16 sub_deck 324
  304.     placeportable litter 22 15 sub_deck 224
  305.     placeportable litter 23 24 sub_deck 124
  306.     placeportable litter 24 26 sub_deck 24
  307.     placeportable litter 25 18 sub_deck 1024
  308.     placeportable litter 26 4 sub_deck 924
  309.     placeportable litter 27 9 sub_deck 824
  310.     placeportable litter 28 1 sub_deck 724
  311.     placeportable litter 29 1 sub_deck 624
  312.     placeportable litter 30 16 sub_deck 524
  313.     set speechcount 13 after say "lev01_task08"
  314.     disable
  315. end
  316.  
  317. :loop166
  318. if
  319.     speechcount = 13
  320. then
  321.     placeportable hard_plan_crate 14 17 sub_deck 324 recycler
  322.     sayx 08 "lev01_objective08"
  323.     disable
  324. end
  325.  
  326. :loop166x
  327. if
  328.     recycler_count > 0
  329. then
  330.     unsayx 08
  331.     disable
  332. end
  333.  
  334. ;Gets player to hire 4 salthogs*****************************************************
  335. :loop168
  336. if
  337.     speechcount = 13
  338.     recycler_count > 0
  339. then
  340.     set speechcount 14 after say "lev01_task09"
  341.     disable
  342. end
  343.  
  344. :loop168a
  345. if
  346.     speechcount = 14
  347. then
  348.     set residentola 1
  349.     sayx 09 "lev01_objective09"
  350.     disable
  351. end
  352.  
  353. :loop168x
  354. if
  355.     residentola > 0
  356.     resident_count > 3
  357. then
  358.     unsayx 09
  359.     disable
  360. end
  361.  
  362. ;Sets up delay for arrival of Arona***********************************************
  363. :loop170
  364. if
  365.     speechcount = 14
  366.     resident_count > 3
  367. then
  368.     set daal 1
  369.     set aronatimer (turn + 400)
  370.     disable
  371. end
  372.  
  373. ;Generates Arona. Will need appropriate Arona text*******************************
  374. :Aronaloop100
  375. if
  376.     daal = 1
  377.     aronatimer < turn
  378. then
  379.     set daal 2
  380.     disable
  381. end
  382.  
  383. :Aronaloop150
  384. if
  385.     daal = 2
  386. then
  387.     trader "arona0101.csv" 240 "lev01_arona01"
  388.     set aronatimer (turn + 2000)
  389.     set scriptwait (turn + 500)
  390.     disable
  391. end
  392.  
  393. ;If the player loses scuzzers arona offers new ones********************************
  394. :Aronaloop200
  395. if
  396.     daal = 2
  397.     aronatimer < turn
  398.     scutter_count < 2
  399.     cargoexists scutter_crate 1 = 0
  400. then
  401.     trader "arona0101.csv" 240 "lev01_aronascuzzer01."
  402.     set aronatimer (turn + 1000)
  403. end
  404.  
  405.  
  406. ;Unpack tech crates provided and build one of each facility************************
  407. :LOOP185
  408. if
  409.     junk_count < 5
  410.     recycler_count > 0
  411.     resident_count > 3
  412.     daal = 2
  413.     speechcount = 14
  414.     scriptwait < turn
  415. then
  416.     unsayx 69
  417.     set speechcount 15 after say "lev01_task10"
  418.     disable
  419. end        
  420.  
  421. :loop186
  422. if
  423.     speechcount = 15
  424. then
  425.     placeportable technology_crate 12 18 sub_deck 24 @BERTHS
  426.     placeportable technology_crate 12 18 sub_deck 1024 @VENDOR
  427.     placeportable technology_crate 12 18 sub_deck 924 @LAVOTRON
  428.     sayx 10 "lev01_objective10"
  429.     disable
  430. end
  431.  
  432. :loop186x
  433. if
  434.     @berths = 1
  435.     @vendor = 1
  436.     @lavotron = 1
  437. then
  438.     unsayx 10
  439.     disable
  440. end    
  441.  
  442. :loop187
  443. if
  444.     @berths = 1
  445.     @vendor = 1
  446.     @lavotron = 1
  447. then
  448.     set techunpack 1 after say "lev01_task10a"
  449.     disable
  450. end
  451.  
  452. :loop187a
  453. if
  454.     techunpack = 1
  455. then
  456.     set techunpack 2
  457.     sayx 101 "lev01_objective10a"
  458.     disable
  459. end
  460.  
  461.  
  462. :loop187x
  463. if
  464.     techunpack = 2
  465.     Vendor_count > 1
  466.     lavotron_count > 1
  467.     berth_count > 1
  468. then
  469.     unsayx 101
  470.     disable
  471. end
  472.  
  473. ;Player must bring the salt hog worker count up to six*******************************************
  474. :Loop188
  475. if
  476.     speechcount = 15
  477.     vendor_count > 1
  478.     lavotron_count > 1
  479.     berth_count > 1
  480.     resident_count < 6
  481. then
  482.     set speechcount 16 after say "lev01_task11"
  483.     disable
  484. end
  485.  
  486. :loop188a
  487. if
  488.     speechcount = 16
  489.     resident_count < 6
  490. then
  491.     sayx 11 "lev01_objective11"
  492.     disable
  493. end
  494.  
  495. :loop188b
  496. if
  497.     speechcount = 16
  498.     resident_count > 5
  499. then
  500.     unsayx 11
  501.     disable
  502. end
  503.  
  504. :loop188c
  505. if
  506.     speechcount = 15
  507.     vendor_count > 1
  508.     lavotron_count > 1
  509.     berth_count > 1
  510.     resident_count > 5
  511. then
  512.     set speechcount 16
  513.     disable
  514. end
  515.  
  516. ;Tells player well done tells them to ensure enough facilities**********************
  517. :loop189
  518. if
  519.     speechcount = 16
  520.     vendor_count > 1
  521.     lavotron_count > 1
  522.     berth_count > 1
  523.     normal_peep_count > 10
  524.     resident_count > 5
  525. then
  526.     set speechcount 17 after say "lev01_task12"
  527.     disable
  528. end
  529.  
  530. :loop189a
  531. if
  532.     speechcount = 17
  533. then
  534.     sayx 12 "lev01_objective12"
  535.     set smallwait (turn + 2000) 
  536.     disable
  537. end
  538.     
  539. ;Comment if the player is taking a long time to do the level***********************
  540. :Loop190
  541. if
  542.     speechcount < 17
  543.     turn > 40000
  544. then
  545.     say "lev01_general03"
  546.     disable
  547. end
  548.  
  549.  
  550. ;Arona making comment*************************************************************
  551. :loop193
  552. if
  553.     normal_peep_count > 20
  554.     winoffer = 0
  555.     daal = 2
  556.     lavotron_count > 1
  557. then
  558.     incoming local_comms "lev01_arona03" icon 6
  559.     disable
  560. end
  561.  
  562.  
  563. ;Once all is done, set new mission objectives***************************************
  564. :Loop195
  565. if
  566.     turn > smallwait
  567.     smallwait > 0
  568.     speechcount = 17
  569.     normal_peep_count > 15
  570. then
  571.     set stage 2 after say "lev01_mission02"
  572.     disable
  573. end
  574.  
  575. ;Generic look after peeps reminder**************************************************
  576. :Loop200
  577. if
  578.     stage = 2
  579. then
  580.     set speechcount 18 after say "lev01_task13"
  581.     set grey_every 20
  582.     disable
  583. end
  584.  
  585. ;Create two targ residents**********************************************************
  586. :loop210
  587. if
  588.     speechcount = 18
  589.     grey_count > 0
  590. then
  591.     unsayx 12
  592.     place_peep targ resident skill 3
  593.     place_peep targ resident skill 4
  594.     set speechcount 19 after say "lev01_task14"
  595.     disable
  596. end
  597.  
  598. ;Create another two targs**********************************************************
  599. :Loop220
  600. if
  601.     targ_count > 0
  602.     speechcount = 19
  603. then
  604.     sayx 14 "lev01_objective14"
  605.     place_peep targ resident skill 5
  606.     place_peep targ resident skill 4
  607.     set speechcount 20
  608.         disable
  609. end
  610.  
  611. ;Build a couple of comsensors with provided crates********************************
  612. :Loop230
  613. if
  614.     targ_count > 2
  615.     speechcount = 20
  616. then
  617.     set speechcount 21 after say "lev01_task15"
  618.     disable
  619. end
  620.  
  621. :Loop250
  622. if
  623.     speechcount = 21
  624. then
  625.     placeportable hard_plan_crate 12 18 sub_deck 1000 satcom
  626.     placeportable hard_plan_crate 12 18 sub_deck 750 satcom
  627.     unsayx 14
  628.     sayx 15 "lev01_objective15"
  629.     disable
  630. end
  631.  
  632. :loop250x
  633. if
  634.     satcom_count > 1
  635. then
  636.     unsayx 15
  637.     disable
  638. end
  639.  
  640. ;ZEDEM EMERGENCY & ARONA INTERVENTION***********************************************
  641.  
  642. :loop260
  643. if
  644. then
  645.     set reply01 3
  646.     disable
  647. end
  648.  
  649. ;Val informs player of emergency message
  650. :loop262
  651. if
  652.     satcom_count > 1
  653. then
  654.     set winoffer 1 after say "lev01_emergency01"
  655.     disable
  656. end
  657.  
  658. ;Message comes through with accept and decline options
  659. :loop265
  660. if
  661.     winoffer > 0
  662. then
  663.     incoming ship_comms respond reply01 within 5000 "lev01_emergency02"
  664.     set winoffer (winoffer + 1)
  665.     disable
  666. end
  667.  
  668. ; if player declines, send message again
  669. :Loop266
  670. if
  671.     reply01 < 2
  672.     winoffer = 2
  673. then
  674.     set reply01 3
  675.     set waitseta (turn + 10)
  676.     disable
  677. end
  678.  
  679. :loop266a
  680. if
  681.     waitseta > turn
  682. then
  683.     trigger :loop265
  684.     disable
  685. end
  686.  
  687. ; send again if still declined
  688. :Loop267
  689. if
  690.     reply01 < 2
  691.     winoffer = 3
  692. then
  693.     set reply01 0
  694.     set waitsetb (turn + 10)
  695.     disable
  696. end
  697.  
  698. ;last warning for player
  699. :loop267a
  700. if
  701.     waitsetb > turn
  702.     winoffer = 3
  703. then
  704.     trigger :loop265 after say "lev01_emergency03"
  705.     disable
  706. end
  707.  
  708. ;Lose if player declines.
  709. :Loop268
  710. if
  711.     winoffer = 4
  712.     reply01 = no
  713. then
  714.     set wincriteria 2 after say "lev01_lose01"
  715.     disable
  716. end
  717.  
  718.  
  719. ;if player accepts
  720. :Loop269
  721. if
  722.     reply01 = 2
  723. then
  724.     set sicktimer (turn + 750)
  725.     incoming ship_comms within 600 "lev01_emergency04"
  726.     set objwait (turn + 500)
  727.     place_peep zedem_monk mood body 6000 infected 3 1
  728.     disable
  729. end
  730.  
  731. :loop269b
  732. if
  733.     turn > objwait
  734.     objwait > 0
  735. then
  736.     set object16 after say "lev01_emergency05"
  737.     disable
  738. end
  739.  
  740. :loop269c
  741. if
  742.     object16 = 1
  743. then
  744.     sayx 16 "lev01_objective16"
  745.     disable
  746. end
  747.  
  748. :loop266d
  749. if
  750.     sicktimer < turn
  751.     sicktimer > 0
  752.     sick_bay_count < 1
  753.     cargoexists hard_plan_crate sick_bay = 0
  754.     blueprint_count < 1
  755. then
  756.     trader "arona0103.csv" 1000 "lev01_arona02"
  757.     set sicktimer (turn + 2000)
  758. end
  759.  
  760. :loop269a
  761. if
  762.     zedem_monk_count = 1
  763. then
  764.     set zedemarrived 1
  765.     disable
  766. end
  767.  
  768. ;Player reminded to hire a good grey doctor
  769. :loop270
  770. if
  771.     sick_bay_count > 0
  772.     peepstat race grey allset resident roger < 1
  773. then
  774.     unsayx 16
  775.     set blah after say "lev01_emergency06"
  776.     disable
  777. end
  778.  
  779. :loop271
  780. if
  781.     blah = 1
  782. then
  783.     sayx 17 "lev01_objective17"
  784.     disable
  785. end
  786.  
  787. ;MISSION END STUFF******************************************************************
  788. :LOOP 370
  789. if
  790.     array curedsofar 1 = 1
  791. then
  792.     unsayx 17
  793.     set wincriteria 1 after say "lev01_win01"
  794.     disable
  795. end
  796.  
  797. :LOOP380
  798. if
  799.     wincriteria = 1
  800. then
  801.     win
  802.     disable
  803. end
  804.  
  805. :Loop385
  806. if
  807.     array deathssofar 1 = 1
  808.     zedemarrived = 1
  809. then
  810.     unsayx 16
  811.     set wincriteria 2 after say "lev01_lose02"
  812.     disable
  813.     end
  814.  
  815. :LOOP395
  816. if
  817.     wincriteria = 2
  818. then
  819.     clear
  820.     lose
  821.     disable
  822. end
  823.  
  824. ;INCREASING TARGS IN LINE WITH FACILITIES*******************************************
  825.  
  826. :Loop500
  827. if
  828.     (satcom_count * 3) > targ_count
  829.     targwait < turn
  830. then
  831.     set targwait (turn + 1000)
  832.     place_peep targ resident
  833.     place_peep targ resident
  834. end
  835.  
  836. ;if energy gets too low*************************************************************
  837. :lowenergy100
  838. if
  839.     energy < 20000
  840.     energy > 10000
  841.     turn > energyremind
  842. then
  843.     say "lev01_energy01"
  844.     set energyremind (turn + 1000)
  845. end
  846.  
  847. :lowenergy110
  848. if
  849.     energy < 10000
  850.     turn > energyremind
  851. then
  852.     say "lev01_energy02"
  853.     set energyremind (turn + 1000)
  854. end
  855.  
  856. ;Rubbish reminder*********************************************************************
  857. :rubbish100
  858. if
  859.     junk_count > 6
  860.     recycler_count > 0
  861.     resident_count > 3
  862. then
  863.     set rubbishola after say "lev01_rubbish01"
  864.     disable
  865. end
  866.  
  867. :rubbish200
  868. if
  869.     rubbishola = 1
  870. then
  871.     sayx 69 "lev01_rubbish01"
  872.     disable
  873. end
  874.  
  875. ;player losing crates without building rooms***********************************************
  876. :portrotted100
  877. if
  878.     cargoexists hard_plan_crate port = 1
  879. then
  880.     set portdelivered 1
  881.     disable
  882. end
  883.  
  884. :portrotted200
  885. if
  886.     blueprint_count < 1
  887.     port_count < 1
  888.     cargoexists hard_plan_crate port = 0
  889.     portdelivered = 1
  890. then
  891.     set portdelivered 2 after say "facilityrot01"
  892.     placeportable hard_plan_crate 12 18 sub_deck 1024 port
  893.     disable
  894. end
  895.  
  896. :portrotted300
  897. if
  898.     portdelivered = 2
  899. then
  900.     cam_pos 1370 60 190 1536 256
  901.     set portdelivered 3
  902.     disable
  903. end
  904.  
  905. :portrotted400
  906. if
  907.     blueprint_count < 1
  908.     port_count < 1
  909.     cargoexists hard_plan_crate port = 0
  910.     portdelivered = 3
  911. then
  912.     trigger :rotlosenotice
  913.     disable
  914. end
  915.  
  916. ;*************************************************************************
  917. :satcomrotted100
  918. if
  919.     cargoexists hard_plan_crate satcom = 1
  920. then
  921.     set satcomdelivered 1
  922.     disable
  923. end
  924.  
  925. :satcomrotted200
  926. if
  927.     blueprint_count < 1
  928.     satcom_count < 2
  929.     cargoexists hard_plan_crate satcom = 0
  930.     satcomdelivered = 1
  931. then
  932.     set satcomdelivered 2 after say "facilityrot01"
  933.     placeportable hard_plan_crate 12 18 sub_deck 1024 satcom
  934.     disable
  935. end
  936.  
  937. :satcomrotted300
  938. if
  939.     blueprint_count < 1
  940.     satcom_count < 2
  941.     cargoexists hard_plan_crate satcom = 0
  942.     satcomdelivered = 2
  943. then
  944.     trigger :rotlosenotice
  945.     disable
  946. end
  947.  
  948. ;***********************************************************************
  949. :berthrotted100
  950. if
  951.     cargoexists hard_plan_crate berth = 1
  952. then
  953.     set berthdelivered 1
  954.     disable
  955. end
  956.  
  957. :berthrotted200
  958. if
  959.     blueprint_count < 1
  960.     berth_count < 1
  961.     cargoexists hard_plan_crate berth = 0
  962.     berthdelivered = 1
  963. then
  964.     set berthdelivered 2 after say "facilityrot01"
  965.     placeportable hard_plan_crate 12 18 sub_deck 1024 berth
  966.     disable
  967. end
  968.  
  969. :berthrotted300
  970. if
  971.     blueprint_count < 1
  972.     berth_count < 1
  973.     cargoexists hard_plan_crate berth = 0
  974.     portdelivered = 2
  975. then
  976.     trigger :rotlosenotice
  977.     disable
  978. end
  979.  
  980. ;***********************************************************************
  981. :lavotronrotted100
  982. if
  983.     cargoexists hard_plan_crate lavotron = 1
  984. then
  985.     set lavotrondelivered 1
  986.     disable
  987. end
  988.  
  989. :lavotronrotted200
  990. if
  991.     blueprint_count < 1
  992.     lavotron_count < 1
  993.     cargoexists hard_plan_crate lavotron = 0
  994.     lavotrondelivered = 1
  995. then
  996.     set lavotrondelivered 2 after say "facilityrot01"
  997.     placeportable hard_plan_crate 12 18 sub_deck 1024 lavotron
  998.     disable
  999. end
  1000.  
  1001. :lavotronrotted300
  1002. if
  1003.     blueprint_count < 1
  1004.     lavotron_count < 1
  1005.     cargoexists hard_plan_crate lavotron = 0
  1006.     lavotrondelivered = 2
  1007. then
  1008.     trigger :rotlosenotice
  1009.     disable
  1010. end
  1011.  
  1012. ;***********************************************************************
  1013. :vendorrotted100
  1014. if
  1015.     cargoexists hard_plan_crate vendor = 1
  1016. then
  1017.     set vendordelivered 1
  1018.     disable
  1019. end
  1020.  
  1021. :vendorrotted200
  1022. if
  1023.     blueprint_count < 1
  1024.     vendor_count < 1
  1025.     cargoexists hard_plan_crate vendor = 0
  1026.     vendordelivered = 1
  1027. then
  1028.     set vendordelivered 2 after say "facilityrot01"
  1029.     placeportable hard_plan_crate 12 18 sub_deck 1024 vendor
  1030.     disable
  1031. end
  1032.  
  1033. :vendorrotted300
  1034. if
  1035.     blueprint_count < 1
  1036.     vendor_count < 1
  1037.     cargoexists hard_plan_crate vendor = 0
  1038.     vendordelivered = 2
  1039. then
  1040.     trigger :rotlosenotice
  1041.     disable
  1042. end
  1043.  
  1044. ;***********************************************************************
  1045. :chargerrotted100
  1046. if
  1047.     cargoexists hard_plan_crate charger = 1
  1048. then
  1049.     set chargerdelivered 1
  1050.     disable
  1051. end
  1052.  
  1053. :chargerrotted200
  1054. if
  1055.     blueprint_count < 1
  1056.     charger_count < 1
  1057.     cargoexists hard_plan_crate charger = 0
  1058.     chargerdelivered = 1
  1059. then
  1060.     set chargerdelivered 2 after say "facilityrot01"
  1061.     placeportable hard_plan_crate 12 18 sub_deck 1024 charger
  1062.     disable
  1063. end
  1064.  
  1065. :chargerrotted300
  1066. if
  1067.     blueprint_count < 1
  1068.     charger_count < 1
  1069.     cargoexists hard_plan_crate charger = 0
  1070.     chargerdelivered = 2
  1071. then
  1072.     trigger :rotlosenotice
  1073.     disable
  1074. end
  1075.  
  1076. ;***********************************************************************
  1077. :techberthrotted100
  1078. if
  1079.     cargoexists technology_crate @berths = 1
  1080. then
  1081.     set techberthdelivered 1
  1082.     disable
  1083. end
  1084.  
  1085. :techberthrotted200
  1086. if
  1087.     @berths < 1
  1088.     cargoexists technology_crate @berths = 0
  1089.     techberthdelivered = 1
  1090. then
  1091.     set techberthdelivered 2 after say "lev01_techrot01"
  1092.     placeportable technology_crate 12 18 sub_deck 1024 @berths
  1093.     disable
  1094. end
  1095.  
  1096. :techberthrotted300
  1097. if
  1098.     @berths < 1
  1099.     cargoexists technology_crate @berths = 0
  1100.     techberthdelivered = 2
  1101. then
  1102.     trigger :rotlosenotice
  1103.     disable
  1104. end
  1105.  
  1106. ;***********************************************************************
  1107. :techlavotronrotted100
  1108. if
  1109.     cargoexists technology_crate @lavotron = 1
  1110. then
  1111.     set techlavotrondelivered 1
  1112.     disable
  1113. end
  1114.  
  1115. :techlavotronrotted200
  1116. if
  1117.     @lavotron < 1
  1118.     cargoexists technology_crate @lavotron = 0
  1119.     techlavotrondelivered = 1
  1120. then
  1121.     set techlavotrondelivered 2 after say "lev01_techrot01"
  1122.     placeportable technology_crate 12 18 sub_deck 1024 @lavotron
  1123.     disable
  1124. end
  1125.  
  1126. :techlavotronrotted300
  1127. if
  1128.     @lavotron < 1
  1129.     cargoexists technology_crate @lavotron = 0
  1130.     techlavotrondelivered = 2
  1131. then
  1132.     trigger :rotlosenotice
  1133.     disable
  1134. end
  1135.  
  1136. ;***********************************************************************
  1137. :techvendorrotted100
  1138. if
  1139.     cargoexists technology_crate @vendor = 1
  1140. then
  1141.     set techvendordelivered 1
  1142.     disable
  1143. end
  1144.  
  1145. :techvendorrotted200
  1146. if
  1147.     @vendor < 1
  1148.     cargoexists technology_crate @vendor = 0
  1149.     techvendordelivered = 1
  1150. then
  1151.     set techvendordelivered 2 after say "lev01_techrot01"
  1152.     placeportable technology_crate 12 18 sub_deck 1024 @vendor
  1153.     disable
  1154. end
  1155.  
  1156. :techvendorrotted300
  1157. if
  1158.     @vendor < 1
  1159.     cargoexists technology_crate @vendor = 0
  1160.     techvendordelivered = 2
  1161. then
  1162.     trigger :rotlosenotice
  1163.     disable
  1164. end
  1165.  
  1166. ;*******************************************************
  1167. :droidrotted100
  1168. if
  1169.     cargoexists scutter_crate 1 = 1
  1170. then
  1171.     set droiddelivered 1
  1172.     disable
  1173. end
  1174.  
  1175. :droidrotted200
  1176. if
  1177.     scutter_count < 1
  1178.     cargoexists scutter_crate 1 = 0
  1179.     droiddelivered = 1
  1180. then
  1181.     set droiddelivered 2 after say "lev01_droidrot01"
  1182.     placeportable scutter_crate 2 13 sub_deck 100 1
  1183.     disable
  1184. end
  1185.  
  1186. :droidrotted300
  1187. if
  1188.     scutter_count < 1
  1189.     cargoexists scutter_crate 1 = 0
  1190.     droiddelivered = 2
  1191. then
  1192.     trigger :rotlosenotice
  1193.     disable
  1194. end
  1195.  
  1196. ;LOSE GAME IF YOU KEEP LETTING STUFF ROT*****************************************
  1197. :rotlosenotice
  1198. if
  1199.     0
  1200. then
  1201.     set loserino after say "lev01_rotter01"
  1202.     disable
  1203. end
  1204.  
  1205. :rotlose
  1206. if
  1207.     loserino = 1
  1208. then
  1209.     lose
  1210.     disable
  1211. end
  1212.  
  1213. ;************************************************************************************
  1214. :deathfines100
  1215. if
  1216.     deathssofar > paiddeaths
  1217. then
  1218.     addenergy (0 - 1000)
  1219.     set paiddeaths (deathssofar)
  1220. end
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.